<link href="<?php echo $this->config->item('webroot')?>/css/news.css" rel="stylesheet" />
<div class="left_frame">
	<div class="news_hot">
		<div class="first">
			<div class="first_left">
				<a href="<?php echo $this->config->item('base_url') , '/vi/news/' , $ListNews[0]->NewsID , '/' , $ListNews[0]->Code?>">
					<img src="<?php echo $this->config->item('data') , '/img/' , $ListNews[0]->Avatar?>" alt="" />
				</a>
			</div>
			<div class="first_right">
				<p><b><a href="<?php echo $this->config->item('base_url') , '/vi/news/' , $ListNews[0]->NewsID , '/' , $ListNews[0]->Code?>">
					<?php echo $ListNews[0]->Title;?>
				</a></b></p>
				<p><?php echo $ListNews[0]->Description;?></p>
			</div>
			<div class="clear"></div>
		</div>
		<?php if(count($ListNews) > 4) $limit = 4; else $limit = count($ListNews);?>
		<?php for($i= 1; $i < $limit; $i++) :?>
			<div class="hot_list">
				<p><a href="<?php echo $this->config->item('base_url') , '/vi/news/' , $ListNews[$i]->NewsID , '/' , $ListNews[0]->Code?>">
					<img src="<?php echo $this->config->item('data') , '/img/' , $ListNews[$i]->Avatar?>" alt="" />
				</a></p>
				<p><a href="<?php echo $this->config->item('base_url') , '/vi/news/' , $ListNews[$i]->NewsID , '/' , $ListNews[0]->Code?>">
					<?php echo $ListNews[$i]->Title;?>
				</a></p>
			</div>
		<?php endfor;?>
	</div>
	<div class="news_update">
		<?php if($limit > 4) :?>
			<ul>
				<?php for($i = 4; $i < count($ListNews); $i++):?>
					<li>
						<a href="<?php echo $this->config->item('base_url') , '/vi/news/' , $ListNews[$i]->NewsID , '/' , $ListNews[$i]->Code?>">
							<?php echo $ListNews[$i]->Title;?>
						</a>
					</li>
				<?php endfor;?>
			</ul>
		<?php else :?>
			<p>Hiện chưa có tin cập nhật</p>
		<?php endif;?>
	</div>
	<div class="clear"></div>
	<?php if(!empty($ListCategory)) :?>
		<?php foreach($ListCategory as $key=>$Item) :?>
			<div class="category_title">
				<?php echo $Item->CategoryName?>
			</div>
			<div>
				<div class="category_news">
					<div class="avatar">
						<img src="<?php echo $this->config->item('data') , '/img/' , $ListNews[0]->Avatar?>">
					</div>
					<div class="title">
						<p>sadasdas</p>
					</div>
					<div class="clear"></div>
				</div>
				<div class="category_list"></div>
				<div class="clear"></div>
			</div>
		<?php endforeach;?>
	<?php endif;?>
</div>
<div class="right_frame">
	dsd<br/>asdsa
</div>
<div class="clear"></div>














